package com.lottery.ruok.lottrey.retrofitModule.request;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by ASUS on 2017/10/2.
 */

public interface UploadAvatar {
    @Multipart
    @POST("upload_file")
    Call<ResponseBody> postImage(@Part("uploadFile\"; filename=\"test.png\"") RequestBody imgs , @Query("token") String token,
                                 @Query("avatar") int avatar,
                                 @Query("userid") String userid);
}
